export const SALES_PRODUCTS_COLUMNS = [
  {
    width: '50',
    type: 'selection',
    selectable: row => row.returnCount > 0
  },
  {
    width: '200',
    prop: 'orginalOrderCode',
    label: '原采购单编号',
    'show-overflow-tooltip': true
  },
  {
    width: '260',
    prop: 'seqNo',
    label: '序列号',
    'show-overflow-tooltip': true
  },
  {
    width: '200',
    prop: 'productCode',
    label: '产品编码',
    'show-overflow-tooltip': true
  },
  {
    width: '200',
    prop: 'productName',
    label: '产品名称（中）',
    'show-overflow-tooltip': true
  },
  {
    width: '200',
    prop: 'productLineName',
    label: '产品线',
    'show-overflow-tooltip': true
  },
  { width: '200', prop: 'productUnitName', label: '单位' },
  { width: '200', prop: 'attribute1', label: '规格' },
  { width: '200', prop: 'attribute1', label: '型号' },
  { width: '200', prop: 'batchNo', label: '批号' },
  { width: '200', prop: 'validDate', label: '有效期至' },
  { width: '200', prop: 'referencePrice', label: '单价' },
  {
    width: '200',
    prop: 'surplusStock',
    label: '库存数量',
    formatter: row => Number(row.surplusStock)
  },
  {
    width: '200',
    prop: 'occupyCount',
    label: '占用数量',
    formatter: row => Number(row.occupyCount)
  },
  {
    width: '200',
    prop: 'returnCount',
    label: '可退数量',
    formatter: row => Number(row.returnCount)
  }
];

export const ORIGINAL_SALES_PRODUCTS_COLUMNS = [
  {
    width: '50',
    type: 'selection',
    selectable: row => row.returnCount > 0
  },
  // { width: '260', prop: 'seqNo', label: '序列号' },
  {
    width: '200',
    prop: 'productCode',
    label: '产品编码',
    'show-overflow-tooltip': true
  },
  {
    width: '250',
    prop: 'productName',
    label: '产品名称（中）',
    'show-overflow-tooltip': true
  },
  {
    width: '160',
    prop: 'productLineName',
    label: '产品线',
    'show-overflow-tooltip': true
  },
  { width: '100', prop: 'productUnitName', label: '单位' },
  { width: '150', prop: 'attribute1', label: '规格' },
  { width: '150', prop: 'attribute1', label: '型号' },
  {
    width: '150',
    prop: 'batchNo',
    label: '批号',
    'show-overflow-tooltip': true
  },
  { width: '150', prop: 'referencePrice', label: '单价（元）' },
  { width: '170', prop: 'validDate', label: '有效期至' },
  {
    width: '130',
    prop: 'surplusStock',
    label: '库存数量',
    formatter: row => Number(row.surplusStock)
  },
  // { width: '200', prop: 'registCode', label: '注册证号' },
  // {
  //   width: '200',
  //   prop: 'surplusStock',
  //   label: '确认收货数量',
  //   formatter: row => Number(row.surplusStock)
  // },
  // {
  //   width: '200',
  //   prop: 'occupyCount',
  //   label: '占用量',
  //   formatter: row => Number(row.occupyCount)
  // },
  {
    width: '130',
    prop: 'returnCount',
    label: '可退数量',
    formatter: row => Number(row.returnCount)
  }
];
